﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Diagnostics;

namespace OfflineInsiderEnrollGUI
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if (radioButton1.Checked == false && radioButton2.Checked == false && radioButton3.Checked == false && radioButton4.Checked == false)
            {
                MessageBox.Show("必须选择一个操作！", ":(", MessageBoxButtons.OK, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button2);
            }else if (radioButton1.Checked)
            {
                Process p = Process.Start(@"files\\1.cmd");
            }
            else if (radioButton2.Checked)
            {
                Process p = Process.Start(@"files\\2.cmd");
            }
            else if (radioButton3.Checked)
            {
                Process p = Process.Start(@"files\\3.cmd");
            }
            else if (radioButton4.Checked)
            {
                Process p = Process.Start(@"files\\4.cmd");
            }
        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }
    }
}
